package com.mgm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;

import com.mgm.pojo.Advertiser;
import com.mgm.pojo.AdvertiserExample;

public interface AdvertiserMapper {
	
    long countByExample(AdvertiserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Advertiser record);

    int insertSelective(Advertiser record);

    List<Advertiser> selectByExample(AdvertiserExample example);

    Advertiser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Advertiser record);

    int updateByPrimaryKey(Advertiser record);
    
    List<String> selectAdvIds();
    
    @MapKey("id")
    Map<Integer, Advertiser> selectAllMap();
}